package edu.sctu.zhengsenwen.month201506.day20150619.interfacedemo;

/**
 * Created by user15 on 2015/6/19.
 */
public class UseCaculatorInterface implements CaculatorInterface{

    public UseCaculatorInterface() {

        System.out.println("caculator1(12.5,11.3) = " + caculator1(12.5, 11.3));
        System.out.println("caculator2(12.5,11.3) = " + caculator2(12.5, 11.3));
    }

    private double caculator2(double numberOne, double numberTwo) {

        double result = numberOne + numberTwo;
        return result;
    }

    private double caculator1(double numberOne, double numberTwo) {

        double result = numberOne * numberTwo;
        return result;
    }


    public static void main(String[] args) {

        UseCaculatorInterface useCaculatorInterface = new UseCaculatorInterface();
    }

    @Override
    public double caculatro(double numberOne, double numberTwo) {
        return 0;
    }
}
